<script>
  let count = 1
  $: doubleCount = count * 2
  function handleClick() {
    count += 1
  }
</script>

<button on:click={handleClick}>点我{count}</button>
count * 2 = {doubleCount}
